package com.aia.prm.web.ria.app.ui.plan;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.aia.prm.domain.VOPlan;
import com.vaadin.data.util.BeanItemContainer;

@SuppressWarnings("serial")
public class PlanContainer extends BeanItemContainer<VOPlan> implements Serializable {
	public static final Object[] NATURAL_COL_ORDER = new Object[] { "PL_ID", "PL_TYPE", "PL_NAME", "PL_IMAGE", "link1", "link2" };

	public static final String[] COL_HEADERS_SHOW = new String[] { "ID", "模板", "名称", "图片", "link1", "link2" };

	public static final Object[] NATURAL_COL_ORDER_FORM = new Object[] { "PL_ID", "PL_TYPE", "PL_NAME", "PL_IMAGE", "PL_SHORT",
			"PL_FREETEXT1", "PL_FREETEXT2", "PL_FREETEXT3", "PL_FREETEXT4" };

	public static final Map<String, String> FIELD_NAME_MAP = new HashMap<String, String>();

	static {
		FIELD_NAME_MAP.put("PL_ID", "ID");
		FIELD_NAME_MAP.put("PL_TYPE", "模板");
		FIELD_NAME_MAP.put("PL_NAME", "名称");
		FIELD_NAME_MAP.put("PL_IMAGE", "图片");
		FIELD_NAME_MAP.put("PL_SHORT", "图片2");
		FIELD_NAME_MAP.put("PL_FREETEXT1", "短信模版");
		FIELD_NAME_MAP.put("PL_FREETEXT2", "营销员信息表名");
		FIELD_NAME_MAP.put("PL_FREETEXT3", "表单提示1");
		FIELD_NAME_MAP.put("PL_FREETEXT4", "表单提示2");
	}

	public static final List<String> PLAN_TYPE_LIST = new ArrayList<String>();
	static {
		PLAN_TYPE_LIST.add("platform");
		PLAN_TYPE_LIST.add("simple");
	}

	public PlanContainer() throws InstantiationException, IllegalAccessException {
		super(VOPlan.class);
	}
}